﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Entity.Goo
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("goods_gift")]
    public class GoodsGift : BaseEntity
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int GoodsId { get; set; }

        /// <summary>
        /// 商品规格ID
        /// </summary>
        public int GoodsSpecId { get; set; }

        /// <summary>
        /// 赠品Id
        /// </summary>
        public int GiftId { get; set; }

        /// <summary>
        /// 赠品规格
        /// </summary>
        public int GiftSpecId { get; set; }

        /// <summary>
        /// 购买量
        /// </summary>
        public int BuyCount { get; set; }

        /// <summary>
        /// 赠送数量
        /// </summary>
        public int GiveCount { get; set; }

        /// <summary>
        /// 是否可以叠加
        /// </summary>
        public bool IsSuperposition { get; set; }

        /// <summary>
        /// 是否有数量赠送数量限制
        /// </summary>
        public bool IsLimited { get; set; }

        /// <summary>
        /// 赠品总数
        /// </summary>
        public int GiftTotal { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public int RemainderCount { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        public DateTime? UpTime { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime? DownTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime CreateTime { get; set; }
    }
}
